<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Record extends Model
{
    const TYPE_IN = 0;
    const TYPE_OUT = 1;


    protected $fillable = ['sku_id', 'quantity', 'price', 'type', 'note', 'user_id'];

    public function sku()
    {
        return $this->belongsTo(Sku::class);
    }
}
